/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.rand;

import static java.lang.Math.*;

/**
 * <p>Project: app2022 - MathDemo
 * <p>Powered by webrx On 2022-01-06 13:56:05
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class MathDemo {
    public static void main(String[] args) {
        System.out.println(abs(-1.5));
        System.out.println(abs(+1.5));
        System.out.println(ceil(1.1));
        System.out.println(ceil(1.9));
        System.out.println(floor(1.1));
        System.out.println(floor(1.9));
        System.out.println(sin(.15));
        System.out.println(pow(2, 3));
    }

    public static void m1(String[] args) {
        System.out.println(random());
        System.out.println(PI);
        System.out.println(round(1.5));
        System.out.println(pf(11));
        long a = round(1.11115);
        System.out.println(a);
    }

    static int pf(int i) {
        return i * i;
    }
}
